package cn.wjc.core.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class CouponEventListener implements ApplicationListener<CouponEvent> {

    @Async
    @Override
    public void onApplicationEvent(CouponEvent event) {
        log.debug("[onApplicationEvent] start");
        log.debug("event message is : {}", event.getMessage());
    }
}
